package com.alibaba.citrus.ots.sales.plan.contants;

/**
 * @author:suqing.tjf
 * @date:2022/1/18
 */
public class SalesPlanConstants {

    public static final String CACHE_FLAG = "1";

    public static final String SALES_PLAN_DEPARTMENT_RESOLVE_PREFIX = "dispatchPlanScItemForDepartment_";

    public static final String SALES_PLAN_CUSTOMER_RESOLVE_PREFIX = "dispatchPlanScItemForCustomer_";

    public static final String SALES_PLAN_ADJUST_CUSTOMER_RESOLVE_PREFIX = "dispatchPlanScItemForCustomerAdjust_";

    public static final String PLAN_SC_ITEM_PRICE_UPDATE_PREFIX = "batchEditCostInsuranceFreightRequest_";

    /**
     * @param key
     * @return
     */
    public static String getPlanScItemPriceUpdatePrefix(String key){
        return PLAN_SC_ITEM_PRICE_UPDATE_PREFIX + key;
    }

    /**
     * @param planId
     * @return
     */
    public static String getDispatchPlanScItemForDepartmentKey(String planId){
        return SALES_PLAN_DEPARTMENT_RESOLVE_PREFIX + planId;
    }

    /**
     * @param planId
     * @return
     */
    public static String getDispatchPlanScItemForCustomerKey(String planId){
        return SALES_PLAN_CUSTOMER_RESOLVE_PREFIX + planId;
    }

    /**
     * @param adjustId
     * @return
     */
    public static String getDispatchPlanScItemForCustomerAdjustKey(String adjustId){
        return SALES_PLAN_ADJUST_CUSTOMER_RESOLVE_PREFIX + adjustId;
    }
}
